package boot.spring.run;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @author pan.shun
 * @since 2022/4/29 20:32
 */
@Slf4j
@Component
public class InitRunProcess implements CommandLineRunner {
    @Value("${server.port}")
    private Integer port;

    @Override
    public void run(String... args) {
        log.info("点击进入页面：http://localhost:{}/login", port);
    }
}
